<script lang="ts" setup>
import { defineExpose } from "vue";
const childMethod=(arg:string)=>{
    console.log('子组件的方法调用，参数',arg);
}
const resetData=()=>{
    console.log('数据已重置');
}
defineExpose({
    childMethod,
    resetData
})
</script>
